package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.Principal;
import com.youhome.service.model.Report;

/**
 * Created by chen365 on 2017/9/11.
 */
public interface ReportService {

    int insertSelective(Report record) throws Exception;

    Report selectByPrimaryKey(Long id) throws Exception;

    int updateByPrimaryKeySelective(Report record) throws Exception;

    PageInfo<Report> selectByUserId(Long userId, int page) throws Exception;

    void createPDF() throws Exception;

    Report findByHouseIDAndUserIDAndType(String houseId, Long userId, Integer type) ;

    int updateStatus(Report record) throws Exception;

    String createTemporaryUrl(Long id) throws CustomException;


    Boolean selectExist(Integer type, String houseId)throws CustomException;

    Report generate(Integer type, String houseId)throws CustomException;

    PageInfo<Report> selectByPage(Principal principal,Integer pageNumber, Integer pageSize) throws CustomException;
}
